package iscript.coreFramework.animation 
{
	import flash.display.BitmapData;
	import flash.utils.Dictionary;
	import iscript.coreFramework.util.DictionaryUtil;
	public class BitmapCache 
	{
		
		public function BitmapCache() 
		{			
		}
		 
		static private var _data:Dictionary = new Dictionary();
		static public function  add(key:*, bitmapdatas:Vector.<BitmapData>):void {
			 _data[key] = bitmapdatas;
			}
		 
			
		static public function hasBitmapData(key:*):Boolean {
			return  DictionaryUtil.hasKey(_data, key);			
			}	
			
		static public function  getBitmapData(key:*):Vector.<BitmapData> {
			 return _data[key];
			}
			
		static public function remove(key:*):void {
			 delete _data[key];
			}
		
	}

}